/*
 * @Description:
 * @Author: YaoXiaotTian
 * @Date: 2021-05-31 10:00:51
 * @LastEditors: YaoXiaoTian
 * @LastEditTime: 2021-05-31 19:27:28
 */
import Vue from "vue";
import VueRouter from "vue-router";
import ShouYe from "@/views/ShouYe.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    component: ShouYe,
  },
  {
    path: "/login",
    component: () => import("@/views/Login.vue"),
  },
  {
    path: "/myinfo",
    component: () => import("@/views/Myinfo.vue"),
  },
  {
    path: "/business",
    component: () => import("@/views/Business.vue"),
  },
  {
    path: "/manage",
    component: () => import("@/views/Manage.vue"),
  },
  {
    path: "/search",
    component: () => import("@/views/SearchPage.vue"),
  },
  {
    path: "/jddetails",
    component: () => import("@/views/details/DetailsJD.vue"),
  },
  {
    path: "/xldetails",
    component: () => import("@/views/details/DetailsXL.vue"),
  },
  {
    path: "/jiudiandetails",
    component: () => import("@/views/details/DetailsJiuDian.vue"),
  },
  {
    path: "/zhifu",
    component: () => import("@/views/details/zhifu.vue"),
  },
  {
    path: "/yanzhen",
    component: () => import("@/views/details/yanzhenzhifu.vue"),
  },
  {
    path: "/raider",
    component: () => import("@/views/details/DetailsGL"),
  },
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
